virtual int message(vector& p,float rad,int msg,int param,void *data)
Parameter | Type | Description |
---|---|---|
p | vector& | position |
rad | float | radius |
msg | int | type |
param | int | parameter |
data | void * | general pointer parameter |
Returns 0 for passing the message on, <>0 for stopping message.
This virtual function processes messages for the object. It must be implemented if the object needs to receive any messages. Returning 0 will let the message pass on to next object that is in its radius, returning <>0 will stop the message and return the value to the caller immediately.